<?php
if(!defined('BASEPATH'))exit('No direct script access allowed');
$route['default_controller'] = "home/defaults";
$route['scaffolding_trigger'] = "";
#BEGIN: Admin
$route[trim(ADMIN_PATH, '/')] = 'admin/defaults/index';
$route[ADMIN_PATH.'logout'] = 'admin/defaults/logout';
#Group
$route[ADMIN_PATH.'group/module/default'] = 'admin/group/index';
$route[ADMIN_PATH.'group/module/default/(:any)'] = 'admin/group/index';
$route[ADMIN_PATH.'group/post'] = 'admin/group/post';
$route[ADMIN_PATH.'group/post/(:num)'] = 'admin/group/post/$1';
#User
$route[ADMIN_PATH.'user/module/(default|normal|vip|bestShop|manager|admin)'] = 'admin/user/index';
$route[ADMIN_PATH.'user/module/(default|normal|vip|bestShop|manager|admin)/(:any)'] = 'admin/user/index';
$route[ADMIN_PATH.'user/post'] = 'admin/user/post';
$route[ADMIN_PATH.'user/post/(:num)'] = 'admin/user/post/$1';
#Section
$route[ADMIN_PATH.'section/module/(default|product|ads|shop|job|news)'] = 'admin/section/index';
$route[ADMIN_PATH.'section/module/(default|product|ads|shop|job|news)/(:any)'] = 'admin/section/index';
$route[ADMIN_PATH.'section/post'] = 'admin/section/post';
$route[ADMIN_PATH.'section/post/(:num)'] = 'admin/section/post/$1';
#Category
$route[ADMIN_PATH.'category/module/(default|product|ads|shop|job|news)'] = 'admin/category/index';
$route[ADMIN_PATH.'category/module/(default|product|ads|shop|job|news)/(:any)'] = 'admin/category/index';
$route[ADMIN_PATH.'category/post'] = 'admin/category/post';
$route[ADMIN_PATH.'category/post/(:num)'] = 'admin/category/post/$1';
#Province
$route[ADMIN_PATH.'province/module/default'] = 'admin/province/index';
$route[ADMIN_PATH.'province/module/default/(:any)'] = 'admin/province/index';
$route[ADMIN_PATH.'province/post'] = 'admin/province/post';
$route[ADMIN_PATH.'province/post/(:num)'] = 'admin/province/post/$1';
#Product
$route[ADMIN_PATH.'product/module/(default|hot|bestShop)'] = 'admin/product/index';
$route[ADMIN_PATH.'product/module/(default|hot|bestShop)/(:any)'] = 'admin/product/index';
$route[ADMIN_PATH.'product/module/comment'] = 'admin/product/comment';
$route[ADMIN_PATH.'product/module/comment/(:any)'] = 'admin/product/comment';
$route[ADMIN_PATH.'product/module/bad'] = 'admin/product/bad';
$route[ADMIN_PATH.'product/module/bad/(:any)'] = 'admin/product/bad';
#Ads
$route[ADMIN_PATH.'ads/module/(default|vip)'] = 'admin/ads/index';
$route[ADMIN_PATH.'ads/module/(default|vip)/(:any)'] = 'admin/ads/index';
$route[ADMIN_PATH.'ads/module/comment'] = 'admin/ads/comment';
$route[ADMIN_PATH.'ads/module/comment/(:any)'] = 'admin/ads/comment';
$route[ADMIN_PATH.'ads/module/bad'] = 'admin/ads/bad';
$route[ADMIN_PATH.'ads/module/bad/(:any)'] = 'admin/ads/bad';
#Job
$route[ADMIN_PATH.'job/module/(default|reliable)'] = 'admin/job/index';
$route[ADMIN_PATH.'job/module/(default|reliable)/(:any)'] = 'admin/job/index';
$route[ADMIN_PATH.'job/module/comment'] = 'admin/job/comment';
$route[ADMIN_PATH.'job/module/comment/(:any)'] = 'admin/job/comment';
$route[ADMIN_PATH.'job/module/bad'] = 'admin/job/bad';
$route[ADMIN_PATH.'job/module/bad/(:any)'] = 'admin/job/bad';
#Employ
$route[ADMIN_PATH.'employ/module/(default|reliable)'] = 'admin/employ/index';
$route[ADMIN_PATH.'employ/module/(default|reliable)/(:any)'] = 'admin/employ/index';
$route[ADMIN_PATH.'employ/module/comment'] = 'admin/employ/comment';
$route[ADMIN_PATH.'employ/module/comment/(:any)'] = 'admin/employ/comment';
$route[ADMIN_PATH.'employ/module/bad'] = 'admin/employ/bad';
$route[ADMIN_PATH.'employ/module/bad/(:any)'] = 'admin/employ/bad';
#News
$route[ADMIN_PATH.'news/module/default'] = 'admin/news/index';
$route[ADMIN_PATH.'news/module/default/(:any)'] = 'admin/news/index';
$route[ADMIN_PATH.'news/post'] = 'admin/news/post';
$route[ADMIN_PATH.'news/post/(:num)'] = 'admin/news/post/$1';
#Shop
$route[ADMIN_PATH.'shop/module/(default|bestShop)'] = 'admin/shop/index';
$route[ADMIN_PATH.'shop/module/(default|bestShop)/(:any)'] = 'admin/shop/index';
#Cart
$route[ADMIN_PATH.'cart/module/default'] = 'admin/cart/index';
$route[ADMIN_PATH.'cart/module/default/(:any)'] = 'admin/cart/index';
#Notice
$route[ADMIN_PATH.'notice/module/default'] = 'admin/notice/index';
$route[ADMIN_PATH.'notice/module/default/(:any)'] = 'admin/notice/index';
$route[ADMIN_PATH.'notice/post'] = 'admin/notice/post';
$route[ADMIN_PATH.'notice/post/(:num)'] = 'admin/notice/post/$1';
#Guide
$route[ADMIN_PATH.'guide/module/default'] = 'admin/guide/index';
$route[ADMIN_PATH.'guide/module/default/(:any)'] = 'admin/guide/index';
$route[ADMIN_PATH.'guide/post'] = 'admin/guide/post';
$route[ADMIN_PATH.'guide/post/(:num)'] = 'admin/guide/post/$1';
#Info
$route[ADMIN_PATH.'info/module/default'] = 'admin/info/index';
$route[ADMIN_PATH.'info/module/default/(:any)'] = 'admin/info/index';
$route[ADMIN_PATH.'info/post'] = 'admin/info/post';
$route[ADMIN_PATH.'info/post/(:num)'] = 'admin/info/post/$1';
#Contact
$route[ADMIN_PATH.'contact/module/(default|business|tech)'] = 'admin/contact/index';
$route[ADMIN_PATH.'contact/module/(default|business|tech)/(:any)'] = 'admin/contact/index';
$route[ADMIN_PATH.'contact/detail/(:num)'] = 'admin/contact/detail/$1';
$route[ADMIN_PATH.'contact/reply/(:num)'] = 'admin/contact/reply/$1';
#Message
$route[ADMIN_PATH.'message/module/default'] = 'admin/message/index';
$route[ADMIN_PATH.'message/module/default/(:any)'] = 'admin/message/index';
#Friend
$route[ADMIN_PATH.'friend/module/default'] = 'admin/friend/index';
$route[ADMIN_PATH.'friend/module/default/(:any)'] = 'admin/friend/index';
#Chat
$route[ADMIN_PATH.'chat/module/default'] = 'admin/chat/index';
$route[ADMIN_PATH.'chat/module/default/(:any)'] = 'admin/chat/index';
#Banner
$route[ADMIN_PATH.'banner/module/default'] = 'admin/banner/index';
$route[ADMIN_PATH.'banner/module/default/(:any)'] = 'admin/banner/index';
$route[ADMIN_PATH.'banner/post'] = 'admin/banner/post';
$route[ADMIN_PATH.'banner/post/(:num)'] = 'admin/banner/post/$1';
#Media
$route[ADMIN_PATH.'media/module/(default|flash|images)'] = 'admin/media/index';
$route[ADMIN_PATH.'media/module/(default|flash|images)/(:any)'] = 'admin/media/index';
$route[ADMIN_PATH.'media/upload'] = 'admin/media/upload';
#Statis
$route[ADMIN_PATH.'statis/module/search'] = 'admin/statis/search';
$route[ADMIN_PATH.'statis/module/search/(:any)'] = 'admin/statis/search';
#Tool
$route[ADMIN_PATH.'tool/module/cache/clear/(views|database)'] = 'admin/tool/cache/$1';
#Setting
$route[ADMIN_PATH.'setting/module/default'] = 'admin/setting/index';
#END Admin
#BEGIN: Home
#Product
$route['product.*'] = 'home/product/index';
#END Home
#BEGIN: Shop
#END Shop